import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

/**
 * Test le composant
 * 
 * @author Lucas
 *
 */
public class Tester 
{

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Display display = new Display ();
		Shell shell = new Shell (display, SWT.DIALOG_TRIM | SWT.RESIZE);
		shell.setText ("Shell");
		shell.setSize (800, 600);
		
		GanttChart gantt = new GanttChart(shell, SWT.BORDER);
		GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
		gantt.setLayoutData(gridData);
		
		GridLayout layout = new GridLayout();
		shell.setLayout(layout);
		

		shell.open ();
		
		while (!shell.isDisposed ()) {
			if (!display.readAndDispatch ()) display.sleep ();
		}
		display.dispose ();
	}

}
